function login(name,passw){
	var options = {
	  apiUrl: WebIM.config.apiURL,
	  user: name,
	  pwd: passw,
	  appKey: WebIM.config.appkey,
	  success: function (res) {
		  saveStorage('token',res.access_token)
	  },
	  fail:function(){
	  }
	};
	conn.open(options);

}
function relogin(){
	var options = {
	  apiUrl: WebIM.config.apiURL,
	  user: getStorage('myid'),
	  accessToken: getStorage('token'),
	  appKey: WebIM.config.appkey
	};
	conn.open(options);
} 
